<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:pe="http://primefaces.org/ui/extensions">
<f:view contentType="text/html">
	<h:head>
		<title>Controle de Doação e Transplantes de Orgãos</title>
	</h:head>
	<h:body>
		<p:growl life="5000" />
		<p:layout fullPage="true">

			<p:ajax event="toggle" listener="#{layoutMB.handleToggle}" />
			<p:ajax event="close"  listener="#{layoutMB.handleClose}" />

			<p:layoutUnit position="north" size="130">
				<p:toolbar >

				<p:toolbarGroup align="right" style="font-size: 12px">
							<p:commandLink	value="Usuario" /> 
							<p:separator /> 
							<p:commandLink	value="logout/login" /> 
							<p:separator /> 
						
					<div
						style="width: 600px; height: 37px; position: absolute; right: 0; top: 22px;">
						<span
							style="position: absolute; bottom: 0; right: 50px; font-size: 20px;">
							<ui:insert name="actualHeaderText">
						</ui:insert>
						</span> <span
							style="position: absolute; bottom: 5px; right: 10px; width: 25px; height: 25px;">
							<p:ajaxStatus style="width:25px;height:25px;">
								<f:facet name="start">
									<h:graphicImage library="images" name="ajaxloading.gif" />
								</f:facet>

								<f:facet name="complete">
									<h:outputText value="" />
								</f:facet>
							</p:ajaxStatus>
						</span>
					</div>
				</p:toolbarGroup>
			</p:toolbar>
				<p:commandLink action="#{layoutMB.indexPageLink}">
					Image
				</p:commandLink>
			</p:layoutUnit>

			<p:layoutUnit position="west" size="200" header="Opções"
				resizable="true" collapsible="true">
				 <p:accordionPanel>
                        <p:tab title="Menu 1">
                            <h:outputText value="Menu 1 Content" />
                        </p:tab>

                        <p:tab title="Menu 2" >
                            <h:outputText value="Menu 2 Content" />
                        </p:tab>
                 </p:accordionPanel>

			</p:layoutUnit>

			<p:layoutUnit position="center">
				<ui:insert name="corpo" />
			</p:layoutUnit>

		</p:layout>

	</h:body>
</f:view>
</html>